const publicModule = {
    state: {
        courseId: ''
    },
    mutations: {
        ADD_COURSE_ID: (state, courseId) => {
            state.courseId = courseId
        }
    },
    actions: {
        addCourseId({
            commit
        }, courseId) {
            return new Promise(resolve => {
                commit('ADD_COURSE_ID', courseId)
                resolve()
            })
        }
    }
}

export default publicModule
